home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / SimHector / main.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-26  |  880 b   |  34 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // main.cxx - The main routine
  4. //
  5. //   The main procedure has to instantiate all of the objects and startup the
  6. // user interface command parser
  7. //
  8. // By: Bradford W. Mott
  9. // Novemeber 13,1993
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12.  
  13. #include "Interface.hxx"
  14. #include "cpu/Hector.hxx"
  15. #include "devices/DeviceRegistry.hxx"
  16. #include "loader/Loader.hxx"
  17.  
  18. main()
  19. {
  20.  AddressSpace*        addr_space = new AddressSpace(0x0000ffff);
  21.  BasicCPU*            processor  = new Hector(addr_space);
  22.  BasicLoader*         loader     = new Loader(processor);
  23.  BasicDeviceRegistry* registry   = new DeviceRegistry;
  24.  
  25.  Interface interface(processor, registry, loader);
  26.  interface.CommandLoop();
  27.  
  28.  delete registry;
  29.  delete loader;
  30.  delete processor;
  31.  delete addr_space;
  32. }
  33.  
  34.